import { createRouter, createWebHashHistory } from 'vue-router'
import PcIndex from '../views/pc_index.vue'
import PcHome from '../views/pc_home.vue'
import ceshi from '../views/ceshi.vue'
import shuati from '../views/shuati.vue'
const routes = [
  {
    path: '/',
    redirect: 'pc_index'
  },{
    path: "/pc_index", 
    name: PcIndex,
    component: () => import('../views/pc_index.vue')
  },
  {
    path: '/pc_home',
    name: PcHome,
    component: () => import('../views/pc_home.vue')
  },
  {
    path: '/ceshi',
    name: ceshi,
    component: () => import('../views/ceshi.vue')
  },
  {
    path: '/shuati',
    name: shuati,
    component: () => import('../views/shuati.vue')
  }

]

const router = createRouter({
   history:createWebHashHistory(process.env.BASE_URL),
   base:'/ilovexiaoxin',
   routes
})

export default router
